import request from '@/utils/request'

// 查询赞助管理列表
export function listSponsorship(query) {
  return request({
    url: '/system/sponsorship/list',
    method: 'get',
    params: query
  })
}

// 查询赞助管理详细
export function getSponsorship(sponsorshipId) {
  return request({
    url: '/system/sponsorship/' + sponsorshipId,
    method: 'get'
  })
}

// 新增赞助管理
export function addSponsorship(data) {
  return request({
    url: '/system/sponsorship',
    method: 'post',
    data: data
  })
}

// 修改赞助管理
export function updateSponsorship(data) {
  return request({
    url: '/system/sponsorship',
    method: 'put',
    data: data
  })
}

// 删除赞助管理
export function delSponsorship(sponsorshipId) {
  return request({
    url: '/system/sponsorship/' + sponsorshipId,
    method: 'delete'
  })
}

// 导出赞助管理
export function exportSponsorship(query) {
  return request({
    url: '/system/sponsorship/export',
    method: 'get',
    params: query
  })
}